<template>
	<!-- 商品 -->
	<van-checkbox v-model="item.checked" v-for="item in cartList" :key="item.id">
			<van-card
				:num="item.number"
				:price="item.retail_price"
				:title="item.goods_name"
				:thumb="item.list_pic_url"
			/>
	</van-checkbox>
</template>

<script>
import axios from 'axios';
export default {
	data(){
		return {
			cartList:[],
			checked:0
		}
	},
	created(){
		axios.get("/api/cart/index").then((res)=>{
			console.log(res);
			this.cartList=res.data.data.cartList
		})
	},

}
</script>
<style scoped>
/* 商品 */
:deep(.van-card){
	background-color: white;
}
:deep(.van-checkbox__label){
	flex: 1;
}
</style>